<div id="tabs" style="border-top: none;border-bottom: none;min-height: 500px">
    <ul>
        <li><a href="#tabs-1">Tour Information</a></li>
        <li><a href="#tabs-2">guide</a></li>
    </ul>
    <div id="tabs-1">
        <input type="hidden" name="txtID" id="txtID" value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->ID|escape:'html'}}{{/if}}"/>
        <table class="w920px">
            <tr>
                <td class="w100  blue">Title</td>
                <td colspan="3">
                    <div class="pr10">
                        <input id="txtTitle" name="txtTitle" type="text"  class="classic-input w100pc"
                               value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Title|escape:'html'}}{{/if}}"
                               onblur="getAliasTo('#txtTitle','#txtAlias')"
                               />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="w100  blue">Alias</td>
                <td colspan="3">
                    <div class="pr10">
                        <input id="txtAlias" name="txtAlias" type="text"  class="classic-input w100pc"
                               value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Alias|escape:'html'}}{{/if}}"
                               />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="w100  blue">Unit Price</td>
                <td>
                        <div class="pr16">
                            <input id="txtUnitPrice" name="txtUnitPrice" type="number" min="0"  class="classic-input w100pc"
                                value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->UnitPrice|escape:'html'}}{{/if}}"
                                />
                        </div>
                </td>
                <td class="w100 tar blue">Company</td>
                <td>
                    <div class="pr">
                        <select id="cbxCompany" name="cbxCompany" class="classic-select w100pc">
                            <option value="Unknown">Unknown</option>
                            {{if isset($Data["oCompany"])}}
                                {{foreach $Data["oCompany"] as $c}}
                                    <option 
                                        {{if isset($Data["OBJ"])}}{{if $c->_no==$Data["OBJ"]->Type}}selected=1{{/if}}{{/if}}
                                        value="{{$c->_no}}">{{$c->_name|escape:'html'}}</option>
                                {{/foreach}}
                            {{/if}}
                        </select>
                        <a href="{{base_url('backend/type/company')}}" class="pa hover50 icon16 chooseimage more_icon"
                            title="More Companies"></a>
                    </div>
                    
                </td>
            </tr>
            <tr>
                <td class="w100  blue">Thumb</td>
                <td colspan="3">
                    <div class="pr10 pr">
                        <input id="txtThumb" name="txtThumb" type="text"  class="classic-input w100pc"
                               value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Thumb|escape:'html'}}{{/if}}"
                               />
                        <div class="pa hover50 icon16 chooseimage chooseimage_icon"
                             onclick="BrowseServer('txtThumb');"
                             title="Choose image from my host"
                             >
                        </div>
<!--                        
onclick="BrowseServer( 'Images:/', 'txtImage' );"
onclick="mcImageManager.open('txtTitle','url');"
-->
                </td>
            </tr>
            <tr>
                <td class="w100  vtat"><label class="lh24">Tag</label></td>
                <td colspan="3">
                    <div class="pr10">
                        <textarea id="txtTag" name="txtTag" style="resize: vertical;" class="classic-input w100pc">{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Tag|escape:'html'}}{{/if}}</textarea>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="w100  blue vtat"><label class="lh24">Content</label></td>
                <td colspan="3">
                    <div class="">
                        <textarea id="txtContent" name="txtContent" style="resize: vertical;" class="classic-input w100pc">{{if isset($Data["OBJ"])}}{{$Data["OBJ"]->Content|escape:'html'}}{{/if}}</textarea>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div id="tabs-2">
        <p>Phần này đang được cập nhật.</p>
    </div>
</div>
<!--<div class="pt8">
    <button class="gray-button" title="Back to grid and ignore any unsaved changes" onclick="myjqxGrid.CancelEdit()"><span>Back</span></button>
    <button class="green-button" title="Apply any changes" onclick="SaveItem()"><span>Save</span></button>
</div>-->
<script>
    $(function() {
        $( "#tabs" ).tabs();
        addEditorContent("txtContent");
    });
</script>